const config = {
    port: process.env.PORT || 5000,
    host: process.env.HOST || '0.0.0.0',
    env: process.env.NODE_ENV || 'development',
    corsOptions: {
        origin: '*',
        methods: ['GET', 'POST', 'OPTIONS'],
        allowedHeaders: ['Content-Type', 'Accept', 'Origin'],
        exposedHeaders: ['Content-Length', 'Content-Type'],
        credentials: false,
        preflightContinue: false,
        optionsSuccessStatus: 200
    }
};

console.log('加载配置:', config);

module.exports = config; 